package cn.kgc.dao.impl;

import cn.kgc.dao.BaseDao;
import cn.kgc.dao.FacultyDao;
import cn.kgc.entity.Faculty;
import cn.kgc.entity.StuAndPro;

import java.util.List;

public class FacultyImpl extends BaseDao implements FacultyDao {
    public List<Faculty> findfaculty() {
        String sql = "SELECT faculty FROM school_faculty";
        List<Faculty> facultyList = this.query(Faculty.class,sql);
        return facultyList;
    }
}
